  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
  }

  .designer-container {
    display: flex;
    height: 100vh;
  }

  .add-panel {
    width: 250px;
    padding: 15px;
    background-color: white;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
  }

  .panel-title {
    font-size: 16px;
    font-weight: 500;
    margin: 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
  }

  .element-list {
    display: flex;
    flex-wrap: wrap;
  }

  .element-item {
    width: 48%;
    margin: 1%;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }

  .element-item:hover {
    background-color: #f0f0f0;
  }

  .preview-panel {
    flex: 1;
    height: 90%;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
  }

  .preview-container {
    width: 375px;
    min-height: 667px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .header-image {
    width: 100%;
    min-height: 100px;
    background-color: #1890ff;
    position: relative;
    font-size: 0;
  }

  .header-image img {
    width: 100%;
    object-fit: cover;
  }

  .form-body {
    padding: 20px;
    transition: all 0.3s;
  }

  .form-group {
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s;
  }

  .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
  }

  .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
    background-color: #f8f8f8;
  }

  .gender-select {
    display: flex;
    margin-top: 10px;
  }

  .gender-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #d9d9d9;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
  }

  .gender-option:last-child {
    margin-right: 0;
  }

  .gender-option.selected {
    border-color: #1890ff;
    background-color: #e6f7ff;
  }

  .verify-code-group {
    display: flex;
  }

  .verify-code-input {
    flex: 1;
    margin-right: 10px;
  }

  .verify-code-btn {
    width: 100px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .agreement {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
  }

  .agreement.with-checkbox {
    display: flex;
    align-items: center;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
  }

  .footer-image {
    width: 100%;
    min-height: 100px;
    font-size: 0;
    background-color: #f5f5f5;
  }

  .footer-image img {
    width: 100%;
    object-fit: cover;
  }

  .element-actions {
    position: absolute;
    right: -120px;
    top: 0;
    display: flex;
  }

  .element-action {
    margin-left: 10px;
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
  }

  .form-element {
    cursor: alias;
  }

  .form-element.dragging {
    border: 2px dashed #1890ff !important;
    background-color: #e6f7ff !important;
  }

  .settings-panel {
    width: 300px;
    padding: 15px;
    background-color: white;
    border-left: 1px solid #e8e8e8;
    overflow-y: auto;
  }

  .setting-item {
    margin-bottom: 15px;
  }

  .setting-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .color-picker {
    display: flex;
    align-items: center;
  }

  .color-picker input[type="color"] {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
  }

  .image-upload {
    width: 100%;
    min-height: 100px;
    position: relative;
  }

  .image-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
  }

  .image-preview {
    width: 100%;
    height: 100px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
  }

  .image-preview img {
    max-width: 100%;
    max-height: 100%;
  }

  .image-placeholder {
    color: #999;
    font-size: 14px;
  }

  .settings-section {
    margin-bottom: 20px;
  }

  .settings-content {
    overflow: hidden;
    transition: all 0.3s;
  }

  .settings-content.collapsed {
    height: 0;
    margin-bottom: 0;
  }

  .panel-toggle {
    cursor: pointer;
    color: #1890ff;
    font-size: 14px;
  }

  .radio-group,
  .checkbox-group {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .radio-option,
  .checkbox-option {
    text-align: center;
    padding: 10px;
    border: 1px solid #d9d9d9;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 47%;
  }

  .radio-option.selected,
  .checkbox-option.selected {
    border-color: #1890ff;
    background-color: #e6f7ff;
  }

  .radio-option:last-child,
  .checkbox-option:last-child {
    margin-right: 0;
  }

  .text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #f8f8f8;
  }